typedef callBack = dynamic Function(dynamic);
class EntityFactory {
  // ignore: non_constant_identifier_names
 static Entity<T>(List<T> list,callBack function){
    List<T> lists = new List<T>();
    list.forEach((element) {
      lists.add(function(element));
    });
    return lists;
  }
}

